import fetch from '@/config/fetch'

/**
 * 登陆
 */
//export const login = data => fetch('api/Public/Login', data, 'POST');

//获取轮播图数据
const carousel=data=>fetch('api/CmsPublic/GetCarousel',data,'GET');

//获取文章列表
const ArticleList=(data,type)=>fetch('api/CmsPublic/ArticleList?type='+type,data,'POST');

//获取文章对象
const ArticleModel=data=>fetch('api/CmsPublic/ArticleModel',data,'GET');

export{
    carousel,
    ArticleList,
    ArticleModel
}